﻿using DapperExtensions;
using FineAdmin.Common;
using System;
namespace FineAdmin.Model
{
    [Table("MaterialGoods")]
    /// <summary>
    /// MaterialGoods 
    /// </summary>
    public class MaterialGoodsModel : Entity
    {
        /// <summary>
        /// 物料表自增ID 
        /// </summary>
        public int? Mid { get; set; }

        /// <summary>
        /// 物料ID 
        /// </summary>
        public int? Material_id { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public DateTime? OverTime { get; set; }

       

        /// <summary>
        /// 商品信息-淘客30天推广量 
        /// </summary>
        public int? TkTotalSales { get; set; }

        /// <summary>
        /// 优惠券信息-优惠券id 
        /// </summary>
        public string CouponId { get; set; }

        /// <summary>
        /// 宝贝ID 
        /// </summary>
        public string ItemId { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 商品信息-商品主图 
        /// </summary>
        public string PictUrl { get; set; }

        /// <summary>
        /// 商品信息-商品小图列表 
        /// </summary>
        public string SmallImages { get; set; }

        /// <summary>
        /// 商品信息-商品一口价格 
        /// </summary>
        public string ReservePrice { get; set; }

        /// <summary>
        /// 折扣价（元） 若属于预售商品，付定金时间内，折扣价=预售价 
        /// </summary>
        public decimal? ZkFinalPrice { get; set; }

        /// <summary>
        /// 店铺信息-卖家类型。0表示集市，1表示天猫 
        /// </summary>
        public int? UserType { get; set; }

        /// <summary>
        /// 商品信息-宝贝所在地 
        /// </summary>
        public string Provcity { get; set; }

        /// <summary>
        /// 链接-宝贝地址 
        /// </summary>
        public string ItemUrl { get; set; }

        /// <summary>
        /// 商品信息-佣金比率。1550表示15.5% 
        /// </summary>
        public string CommissionRate { get; set; }

        /// <summary>
        /// 商品信息-30天销量（饿了么卡券信息-总销量） 
        /// </summary>
        public int? Volume { get; set; }

        /// <summary>
        /// 店铺信息-卖家id 
        /// </summary>
        public string SellerId { get; set; }

        /// <summary>
        /// 优惠券总量 
        /// </summary>
        public int? CouponTotalCount { get; set; }

        /// <summary>
        /// 优惠券剩余 
        /// </summary>
        public int? CouponRemainCount { get; set; }

        /// <summary>
        /// 优惠券信息-优惠券满减信息 
        /// </summary>
        public string CouponInfo { get; set; }

        /// <summary>
        /// 商品信息-佣金类型。MKT表示营销计划，SP表示定向计划，COMMON表示通用计划 
        /// </summary>
        public string CommissionType { get; set; }

        /// <summary>
        /// 店铺信息-店铺名称 
        /// </summary>
        public string ShopTitle { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public int? ShopDsr { get; set; }

        /// <summary>
        /// 链接-宝贝+券二合一页面链接 
        /// </summary>
        public string CouponShareUrl { get; set; }

        /// <summary>
        /// 链接-宝贝推广链接 
        /// </summary>
        public string ClickUrl { get; set; }

        /// <summary>
        /// 商品信息-一级类目名称 
        /// </summary>
        public string LevelOneCategoryName { get; set; }

        /// <summary>
        /// 商品信息-一级类目ID 
        /// </summary>
        public int? LevelOneCategoryId { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 商品信息-叶子类目id 
        /// </summary>
        public int? CategoryId { get; set; }

        /// <summary>
        /// 商品信息-商品短标题 
        /// </summary>
        public string ShortTitle { get; set; }

        /// <summary>
        /// 商品信息-商品白底图 
        /// </summary>
        public string WhiteImage { get; set; }

        /// <summary>
        /// 优惠券信息-优惠券起用门槛，满X元可用。如：满299元减20元 
        /// </summary>
        public string CouponStartFee { get; set; }

        /// <summary>
        /// 优惠券（元） 若属于预售商品，该优惠券付尾款可用，付定金不可用 
        /// </summary>
        public int? CouponAmount { get; set; }

        /// <summary>
        /// 商品信息-宝贝描述（推荐理由,不一定有） 
        /// </summary>
        public string ItemDescription { get; set; }

        /// <summary>
        /// 店铺信息-卖家昵称 
        /// </summary>
        public string Nick { get; set; }

        /// <summary>
        /// 活动价 
        /// </summary>
        public string SalePrice { get; set; }

        /// <summary>
        /// 天猫限时抢可售 -结束时间（毫秒） 
        /// </summary>
        public long? TmallPlayActivityEndTime { get; set; }

        /// <summary>
        /// 天猫限时抢可售 -开始时间（毫秒） 
        /// </summary>
        public long? TmallPlayActivityStartTime { get; set; }

        /// <summary>
        /// 优惠券信息-优惠券开始时间 
        /// </summary>
        public DateTime? CouponStartTime { get; set; }

        /// <summary>
        /// 商品信息-商品关联词 JSON 储存 
        /// </summary>
        public string WordList { get; set; }

        /// <summary>
        /// 选品库信息 JSON 
        /// </summary>
        public string FavoritesInfo { get; set; }

        /// <summary>
        /// 券后价 需计算
        /// </summary>
        public decimal CouponAfterPrice { get; set; }

        /// <summary>
        /// 查询参数 券后价
        /// </summary>
        [Computed]
        public decimal? B_Price { get; set; }
        /// <summary>
        ///  查询参数 券后价
        /// </summary>
        [Computed]
        public decimal? S_Price { get; set; }

        [Computed]
        public OrdrRuleEnum OrderType { get; set; }



        public DateTime? CouponEndTime { get; set; }

        /// <summary>
        /// 淘口令
        /// </summary>
        public string TKL { get; set; }
    }
}